package com.ymk;

import org.apache.ibatis.io.VFS;
import org.mybatis.spring.boot.autoconfigure.SpringBootVFS;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@ImportResource("classpath:spring-server.xml")
@EnableScheduling
public class Server {
    public static void main(String[] args) {
        VFS.addImplClass(SpringBootVFS.class);
        SpringApplication.run(Server.class, args);
        System.out.println("服务器启动成功");
    }
}
